package com.glacier.excel;

import com.glacier.excel.domain.SheetMeta;
import com.glacier.excel.utils.ClassUtils;
import org.apache.poi.ss.usermodel.Workbook;

import java.util.ArrayList;
import java.util.List;
import java.util.Optional;

/**
 * date 2021-06-17 10:57
 *
 * @author glacier
 * @version 1.0
 */
public class ExcelWriter {
    private Workbook workbook;
    private List<SheetMeta> sheetMetas;
    
    public ExcelWriter(Class<?> clazz) {
        this.sheetMetas = new ArrayList<>();
    }
    
    public ExcelWriter(List<SheetMeta> sheetMetas) {
        this.sheetMetas = Optional.ofNullable(sheetMetas)
                .orElseGet(ArrayList::new);
    }
}
